package sensors;

import src.Logger;
import hrSensor.HRSensor;


public class HeartSensor implements ISensor{

	HRSensor sensore;
	Logger logger;
	
	public HeartSensor(){
		logger = Logger.getLogger(); 
		sensore = new HRSensor(60);
	}

	@Override
	public double getValue() {
		return sensore.getValue();
	}

	@Override
	public double[] getRange() {
		return sensore.getRange();
	}

	@Override
	public void setRange(double min, double thresh, double max) {
		logger.write(HeartSensor.class.getSimpleName(),"Impossibile inserire un range");
	}

	@Override
	public Object[] getData() {
		return null;
	}

	@Override
	public int getType() {
		return DATA.HUMAN_BASED;
	}

	@Override
	public boolean getOnline() {
		return true;
	}

	@Override
	public boolean getASCDESC() {
		return false;
	}

}
